#-------------------------------------------------------------------------------
# Name:        Joystick Handler
# Purpose:
#
# Author:      Michael Blackwood
#
# Created:     13/12/2013
# Copyright:   (c) Monxcleyr Productions 2013
# Licence:     GPL v3
#-------------------------------------------------------------------------------
#!/usr/bin/env python

import pygame

class JoystickHandler():

  """class comment"""

  def __init__(self):
    pygame.joystick.init()

    self.joysticks = []
    for i in range(pygame.joystick.get_count()):
      self.joysticks.append(pygame.joystick.Joystick(i))

    if len(self.joysticks) >= 1:
      print self.joysticks[0].get_name()
